/**
 * @author LKQ
 * @date 2022/2/20 11:13
 * @description
 */
public class Solution {
    public static void main(String[] args) {
        Solution solution = new Solution();
        solution.isOneBitCharacter(new int[]{1, 0, 0});
    }
    public boolean isOneBitCharacter(int[] bits) {
        for (int i = 0; i < bits.length; i++) {
            if (bits[i] == 0 && i == bits.length - 1){
                return true;
            }
            if (bits[i] == 0) {
                continue;
            } else {
                i = i + 1;
            }
        }
        return false;
    }
}
